﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;

//namespace Sunny.Controls
//{
//	public class NumericStringListSearchItem<ListControlType> : ListSearchItem<ListControlType> where ListControlType : Sunny.Controls.DropDownList
//	{
//		private Operator[] _OperatorOptions;
//		public override Operator[] Operators
//		{
//			get
//			{
//				if (this._OperatorOptions == null)
//					this._OperatorOptions = new Operator[]
//                    {
//						new Operator("=","{0}.Contains(\",\"+{1}.ToString()+\",\")"),
//						new Operator("≠","!{0}.Contains(\",\"+{1}.ToString()+\",\")"),
//                    };
//				return this._OperatorOptions;
//			}
//		}

//		public override Sunny.Controls.Searcher.WhereCommand GetCommand(string field, int index)
//		{
//			if (this.SimpleSearcherInput == null)
//				return null;
//			if (((Sunny.Controls.DropDownList)this.SimpleSearcherInput).SelectedValue == null)
//				return null;
//			return new Sunny.Controls.Searcher.WhereCommand { Text = string.Format("{0}.Contains(@{1})", field, index), Parameters = new object[] { "," + ((Sunny.Controls.DropDownList)this.SimpleSearcherInput).SelectedValue + ',' } };
//		}
//	}
//}